/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package daos;

import beans.Bean;
import java.sql.ResultSet;
import java.util.List;

/**
 *
 * @author mpastarini
 */
public interface Dao {

    public Bean make(ResultSet result) throws Exception;
    public long insert(Bean bean) throws Exception;
    public void update(Bean bean) throws Exception;
    public void delete(Bean bean) throws Exception;
    public List<Bean> select(Bean bean) throws Exception;    
    public boolean valid(Bean bean) throws Exception;
    public Bean get(Bean bean)throws Exception;
    public long getSize(Bean bean)throws Exception;
}
